<?php
header('Access-Control-Allow-Origin: *'); 
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');

include_once 'confi.php';
	


	$idfacebook = $_POST['id'];
	$username = $_POST['name'];
	$idanalytics = $_POST['idanalytics'];
	$idaudience = $_POST['idaudience'];
	$gender = $_POST['gen'];
	
	// Insert data into data base
	$sql = "INSERT INTO `startstu_audience`.`audience` (`ID`, `idfacebook`, `username`, `idanalytics`, `idaudience`, `gender`) VALUES (NULL, '$idfacebook', '$username', '$idanalytics', '$idaudience', '$gender')";
	$qur = mysql_query($sql);
	
	mysql_close($conn);
?>